<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let name = "李四"
        let add = function () {
            console.log('add');
        }
        let a = 10 , b = 20

        let back = function () {
            return 'school'
        }
        let obj1 = {}
        let obj21 = {a:'bbbbb'}

        // let obj = { name:name,age:'李四'}
        let  obj = {
            [obj1]:'对象',
            [back()]:'青芒',
            [a+b]:'[里边的]',
            name : name,
            age : 10,
            // speak : add
            speak(){
                console.log('a1111111111');
            }
        }
        // obj[a+b] = "2222222"
        console.log(obj['[object Object]']);
        console.log(obj[obj21]);

        // console.log(obj1);
        // console.log(obj);
        // alert(obj)
        // alert(obj1)

        obj.speak = function () {
            console.log("重新赋值的");
        }

        obj.speak()
        // console.log(obj);
    </script>
</body>
</html>